package org.geekbang.thinking.in.spring.conversion.aop;

import java.lang.reflect.Proxy;

public class Application {
    public static void main(String[] args) {
        Hello hello = new SpringHello();

        Hello newedProxyInstance = (Hello) Proxy.newProxyInstance(hello.getClass().getClassLoader(),
                hello.getClass().getInterfaces(), new LogHandler(hello));

        newedProxyInstance.say();
    }
}
